package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类渲染数据
 *
 * @author LaiSanShan
 * @date 2021-08-01
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {

    // 1级父分类
    private String catalog1Id;

    // 3级子分类
    private List<Catalog3Vo> catalog3List;

    private String id;

    private String name;

    /**
     * 三级分类渲染数据
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catalog3Vo {
        // 2级父分类id
        private String catalog2Id;
        private String id;
        private String name;
    }

}
